{% load static %}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="application/html; charset=utf-8">
    <link rel="stylesheet" href="{% static 'style.less' %}" type='text/less'>

    <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css" type="text/css" />
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/i18n/jquery-ui-i18n.min.js"></script>
    <script src="https://yandex.st/json2/2011-01-18/json2.min.js"></script>
    <script src="{% static 'csrf.js' %}"></script>
    {{ form.media.css }}
    <title>{% block title %}{% endblock %}</title>

    {% block head %}{% endblock %}
</head>
<body>

<div class="topbar">
    <div class="fill">
        <div class="container">
            <a class="brand" href="/">Django gallery solution</a>
            <ul class="nav">
                {% if request.user.is_authenticated %}
                    <li>
                        <a href="{% url 'admin:logout' %}">Logout</a>
                    </li>
                    {% if request.user.is_superuser %}
                        <li>
                            <a href="{% url 'admin:index' %}">Admin interface</a>
                        </li>
                    {% endif %}
                {% endif %}
                <li><a href="https://github.com/hovel/imagestore">Code</a></li>
                <li><a href="https://pypi.python.org/pypi/imagestore">Download</a></li>
                <li><a href="https://readthedocs.org/docs/imagestore/en/latest/">Documentation</a></li>
            </ul>
        </div>
    </div>
</div>

<div class="container-fluid">
    <div class="sidebar">
        {% block content-related %}

        {% endblock %}
    </div>
    <!-- Main hero unit for a primary marketing message or call to action -->
    <div class="content">
        <div class="main-block">
            {% if messages %}
                <ul class="messages">
                    {% for message in messages %}
                        <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
                    {% endfor %}
                </ul>
            {% endif %}
            {% if request.path != '/' %}
                <div id="breadcrumb">
                    {% block breadcrumb %}
                        <a href="/">Main</a>
                    {% endblock breadcrumb %}
                </div>
            {% endif %}
            {% if request.path == '/' %}
                <div class='forum-headline'>
                    This is a default installation of PyBBModified with default theme from example.
                </div>
            {% endif %}

            {% block content %}
            {% endblock content %}
            <script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
            <div class="yashare-auto-init" data-yashareL10n="ru" data-yashareType="button" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,lj,friendfeed,moikrug"></div>

        </div>
    </div>
    {% if request.path == '/' %}
    {% endif %}

</div> <!-- /container -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/less.js/2.7.2/less.min.js"></script>
{{ form.media.js }}
</body>
</html>
